//package com.dengbw.systemtransfer.controller;
//
//import com.dengbw.systemtransfer.mapper.SysCorpVillageMapper;
//import com.dengbw.systemtransfer.model.Result;
//import com.dengbw.systemtransfer.service.TransferService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * @author dengbw
// * @date 2021/11/4 10:28 上午
// */
//@Api(tags = "测试", hidden = true)
//@RestController
//@RequestMapping("test")
//public class TestController {
//    SysCorpVillageMapper mapper;
//    TransferService transferService;
//
//    @Autowired
//    public TestController(SysCorpVillageMapper mapper, TransferService transferService) {
//        this.mapper = mapper;
//        this.transferService = transferService;
//    }
//
//    @ApiOperation("筛选乡镇管理人员组织id")
//    @GetMapping("scv/gl/{corpId}")
//    public Result<List<Long>> testGb(@PathVariable("corpId") String corpId) {
//        return Result.success(mapper.getGuanli(corpId));
//    }
//
//    @ApiOperation("筛选乡镇管理人员组织id")
//    @GetMapping("scv/fw/{corpId}")
//    public Result<List<Long>> testFuwu(@PathVariable("corpId") String corpId) {
//        return Result.success(mapper.getFuwu(corpId));
//    }
//
//    @ApiOperation("筛选村id")
//    @GetMapping("scv/cun/{corpId}")
//    public Result<List<Long>> testCun(@PathVariable("corpId") String corpId) {
//        return Result.success(mapper.getCun(corpId));
//    }
//
//    @ApiOperation("menu")
//    @GetMapping("menu")
//    public Result<String> testMenu() {
////        transferService.saveMenu("ding06403cbf9a360216bc961a6cb783455b", 559965447L);
////        transferService.saveUserRole("ding06403cbf9a360216bc961a6cb783455b", 559965447L);
//        transferService.addToFarmer("ding06403cbf9a360216bc961a6cb783455b", 559965447L);
//
//        return Result.success("ok");
//    }
//}
